package cn.cyb.server.common.exception;

/**
 * @author yuebo
 * @date 2024/12/25
 */
public class ServiceException extends RuntimeException {

    private Integer code;
    private String message;

    public ServiceException() {
    }

    public ServiceException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    public ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
